/*
 * XML Type:  InterTransferMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterTransferMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterTransferMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterTransferMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractMessageSetVersionImpl implements net.ofx.types.x2003.x04.InterTransferMessageSetV1
{
    
    public InterTransferMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName XFERPROF$0 = 
        new javax.xml.namespace.QName("", "XFERPROF");
    private static final javax.xml.namespace.QName CANBILLPAY$2 = 
        new javax.xml.namespace.QName("", "CANBILLPAY");
    private static final javax.xml.namespace.QName CANCELWND$4 = 
        new javax.xml.namespace.QName("", "CANCELWND");
    private static final javax.xml.namespace.QName DOMXFERFEE$6 = 
        new javax.xml.namespace.QName("", "DOMXFERFEE");
    private static final javax.xml.namespace.QName INTLXFERFEE$8 = 
        new javax.xml.namespace.QName("", "INTLXFERFEE");
    
    
    /**
     * Gets the "XFERPROF" element
     */
    public net.ofx.types.x2003.x04.TransferProfile getXFERPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProfile target = null;
            target = (net.ofx.types.x2003.x04.TransferProfile)get_store().find_element_user(XFERPROF$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "XFERPROF" element
     */
    public void setXFERPROF(net.ofx.types.x2003.x04.TransferProfile xferprof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProfile target = null;
            target = (net.ofx.types.x2003.x04.TransferProfile)get_store().find_element_user(XFERPROF$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransferProfile)get_store().add_element_user(XFERPROF$0);
            }
            target.set(xferprof);
        }
    }
    
    /**
     * Appends and returns a new empty "XFERPROF" element
     */
    public net.ofx.types.x2003.x04.TransferProfile addNewXFERPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProfile target = null;
            target = (net.ofx.types.x2003.x04.TransferProfile)get_store().add_element_user(XFERPROF$0);
            return target;
        }
    }
    
    /**
     * Gets the "CANBILLPAY" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANBILLPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANBILLPAY$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANBILLPAY" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANBILLPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANBILLPAY$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANBILLPAY" element
     */
    public void setCANBILLPAY(net.ofx.types.x2003.x04.BooleanType.Enum canbillpay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANBILLPAY$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANBILLPAY$2);
            }
            target.setEnumValue(canbillpay);
        }
    }
    
    /**
     * Sets (as xml) the "CANBILLPAY" element
     */
    public void xsetCANBILLPAY(net.ofx.types.x2003.x04.BooleanType canbillpay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANBILLPAY$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANBILLPAY$2);
            }
            target.set(canbillpay);
        }
    }
    
    /**
     * Gets the "CANCELWND" element
     */
    public java.lang.String getCANCELWND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANCELWND$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANCELWND" element
     */
    public net.ofx.types.x2003.x04.DayspanType xgetCANCELWND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(CANCELWND$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANCELWND" element
     */
    public void setCANCELWND(java.lang.String cancelwnd)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANCELWND$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANCELWND$4);
            }
            target.setStringValue(cancelwnd);
        }
    }
    
    /**
     * Sets (as xml) the "CANCELWND" element
     */
    public void xsetCANCELWND(net.ofx.types.x2003.x04.DayspanType cancelwnd)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(CANCELWND$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DayspanType)get_store().add_element_user(CANCELWND$4);
            }
            target.set(cancelwnd);
        }
    }
    
    /**
     * Gets the "DOMXFERFEE" element
     */
    public java.lang.String getDOMXFERFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOMXFERFEE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DOMXFERFEE" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetDOMXFERFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(DOMXFERFEE$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DOMXFERFEE" element
     */
    public void setDOMXFERFEE(java.lang.String domxferfee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOMXFERFEE$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOMXFERFEE$6);
            }
            target.setStringValue(domxferfee);
        }
    }
    
    /**
     * Sets (as xml) the "DOMXFERFEE" element
     */
    public void xsetDOMXFERFEE(net.ofx.types.x2003.x04.AmountType domxferfee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(DOMXFERFEE$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(DOMXFERFEE$6);
            }
            target.set(domxferfee);
        }
    }
    
    /**
     * Gets the "INTLXFERFEE" element
     */
    public java.lang.String getINTLXFERFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTLXFERFEE$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "INTLXFERFEE" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetINTLXFERFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(INTLXFERFEE$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "INTLXFERFEE" element
     */
    public void setINTLXFERFEE(java.lang.String intlxferfee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTLXFERFEE$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INTLXFERFEE$8);
            }
            target.setStringValue(intlxferfee);
        }
    }
    
    /**
     * Sets (as xml) the "INTLXFERFEE" element
     */
    public void xsetINTLXFERFEE(net.ofx.types.x2003.x04.AmountType intlxferfee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(INTLXFERFEE$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(INTLXFERFEE$8);
            }
            target.set(intlxferfee);
        }
    }
}
